<?php
/**
 * Created by PhpStorm.
 * User: huynguyen
 * Date: 9/24/14
 * Time: 11:04 PM
 */

namespace Common\library;

class Common
{
    public static function listYear()
    {
        $year = array();
        for($i = 2014;$i >= 1905; $i--)
        {
            $year[$i] = $i;
        }
        return $year;
    }

    public static function listStatus()
    {
        return array(
            'A' => 'Hoạt động' ,
            'H' => 'Ẩn' ,
            'D' => 'Vô hiệu hóa'
        );
    }

    public static function listSourceFile()
    {
        return array(
            'J' => 'JAVHD Server',
            'Y' => 'Youtube',
            'V' => 'Vimeo'
        );
    }

    public static function listAgentVideo()
    {
        return array(
            'C' => 'Computer',
            'A' => 'Android',
            'I' => 'IOS',
            'W' => 'Windown Phone',
            'F' => 'Tất cả'
        );
    }

    public static function listProtocol()
    {
        return array(
            'http' => 'http',
            'https' => 'https',
        );
    }

    public static function listThumbnailOptionA()
    {
        return array(
            '130_130' => array(
                'width' => 130,
                'height' => 130,
            ),
            '160_230' => array(
                'width' => 160,
                'height' => 230,
            ),
        );
    }

    public static function listThumbnailOptionB()
    {
        return array(
            '300_150' => array(
                'width' => 130,
                'height' => 130,

            ),
            '300_250' => array(
                'width' => 160,
                'height' => 230
            ),
        );
    }
} 